<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript">
			         var L_helpType = "STD_ENG";
      			</script><link rel="STYLESHEET" type="text/css" href="minimal.css"><script type="text/javascript">var nofeedbacklink = true;</script><script src="common.js" type="text/javascript"></script><script src="cssframes.js" type="text/javascript"></script><meta name="department" content="Engineering">
<title>Create TCP Slave VI</title>
<link media="print" rel="stylesheet" type="text/css" href="print.css">
</head>
<body>
<noscript>
<p class="Body">JavaScript is disabled. <a href="lvhelp.chm::/JavaScript_Disabled.html">Details</a></p>
<hr width="100%">
</noscript>
<div id="styleDivTitle">
<h1>Create TCP Slave VI</h1><strong>Installed With:</strong> LabVIEW<p>Creates a standard TCP slave with an IP ADU. If the data model input is unwired, a standard data model will be initialized and used. If the input is wired, the code will check to make sure that it is not the default value for the class (it should be initialized). If the default value of the class is wired, the standard model will be initialized and used.</p>
<p class="Anchor"><img src="Create_TCP_Slave.gif" alt="Create TCP Slave"></p>
</div>
<div id="styleDivScrolling">
<table class="Borderless">
<tr>
<td><img src="datatype_images\crn.gif" alt="datatype_images\crn.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>device data model</strong> accepts an initialized data model, if extended functionality is desired. This model defines how the slave stores data and reacts to functions and data sent by a Modbus master.</p>
</td>
</tr>
<tr>
<td><img src="datatype_images\icclst.gif" alt="datatype_images\icclst.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>error out</strong> contains error information. This output provides standard error out functionality.</p>
<table class="Borderless">
<tr>
<td><img src="datatype_images\ibool.gif" alt="datatype_images\ibool.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>status</strong> is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

Right-click the <strong>error in</strong> control on the front panel and select <strong>Explain Error</strong> or <strong>Explain Warning</strong> from the shortcut menu for more information about the error.</p>
</td>
</tr>
<tr>
<td><img src="datatype_images\ii32.gif" alt="datatype_images\ii32.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>code</strong> is the error or warning code.

Right-click the <strong>error in</strong> control on the front panel and select <strong>Explain Error</strong> or <strong>Explain Warning</strong> from the shortcut menu for more information about the error.</p>
</td>
</tr>
<tr>
<td><img src="datatype_images\istr.gif" alt="datatype_images\istr.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>source</strong> describes the origin of the error or warning.

Right-click the <strong>error in</strong> control on the front panel and select <strong>Explain Error</strong> or <strong>Explain Warning</strong> from the shortcut menu for more information about the error.</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="datatype_images\ccclst.gif" alt="datatype_images\ccclst.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>error in</strong> describes error conditions that occur before this node runs. This input provides standard error in functionality.</p>
<table class="Borderless">
<tr>
<td><img src="datatype_images\cbool.gif" alt="datatype_images\cbool.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>status</strong> is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

Right-click the <strong>error in</strong> control on the front panel and select <strong>Explain Error</strong> or <strong>Explain Warning</strong> from the shortcut menu for more information about the error.</p>
</td>
</tr>
<tr>
<td><img src="datatype_images\ci32.gif" alt="datatype_images\ci32.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>code</strong> is the error or warning code.

Right-click the <strong>error in</strong> control on the front panel and select <strong>Explain Error</strong> or <strong>Explain Warning</strong> from the shortcut menu for more information about the error.</p>
</td>
</tr>
<tr>
<td><img src="datatype_images\cstr.gif" alt="datatype_images\cstr.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>source</strong> describes the origin of the error or warning.

Right-click the <strong>error in</strong> control on the front panel and select <strong>Explain Error</strong> or <strong>Explain Warning</strong> from the shortcut menu for more information about the error.</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="datatype_images\cu16.gif" alt="datatype_images\cu16.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>port</strong> accepts the TCP/IP port of the desired slave. The default for the Modbus standard is port 502.</p>
</td>
</tr>
<tr>
<td><img src="datatype_images\irn.gif" alt="datatype_images\irn.gif"></td>
<td>
<p class="noTopMargin noBottomMargin"> <strong>TCP slave instance</strong> returns a configured and initialized TCP slave.</p>
</td>
</tr>
</table>
</div>
</body>
</html>
